/*
* Copyright (C) 2009-2011 - Roman Kalynchuk
*
* This file is part of REngine.
*
* REngine is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* REngine is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with REngine.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef __IWINDOW_H__
#define __IWINDOW_H__

#include "gui/iwidget.h"

namespace rengine3d {

	class IWindow: public IWidget {
	public:
		IWindow(){};
		virtual ~IWindow(){};

		virtual bool Init(const string_t& title, uint width, uint height, uint bpp, bool fullScreen) = 0;
		virtual void Shutdown(void) = 0;

		virtual bool Update(void) = 0;
		virtual void SwapBuffers(void) = 0;

		virtual void SetCursorPos(uint x, uint y) = 0;
		virtual void ShowCursor(void) = 0;
		virtual void HideCursor(void) = 0;

		virtual bool GetFocus(void) = 0;
		virtual void SetFocus(bool focus) = 0;
	
		virtual bool IsActive(void) = 0;
		virtual void SetActive(bool active) = 0;

		virtual bool IsFullScreen(void) = 0;
		virtual void SetFullScreen(bool fs) = 0;

		virtual int GetXPosition(void) = 0;
		virtual int GetYPosition(void) = 0;

		virtual uint GetWidth(void) = 0;
		virtual uint GetHeight(void) = 0;

		virtual void SetTitle(const string_t& title) = 0;
	};
}

#endif

